import { createApp, ref } from "vue/dist/vue.esm-browser";

function useCount() {
  const count = ref(0);
  return {
    count,
    increase: () => {
      count.value++;
    },
  };
}

createApp({
  setup() {
    return {
      ...useCount(),
    };
  },
}).mount("#app");
